<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script src="${pageContext.request.contextPath}/resource/js/ajaxanywhere/aa.js"></script>
<script src="${pageContext.request.contextPath}/resource/js/ajaxanywhere/pageHelper.js"></script>
<style>
.pager { text-align: center; padding: 10px 3px; background-color: #fff; margin: 3px; color: #a0a0a0; font-size: 14px;}
.pager a { border: #d4dfe3 1px solid; padding: 2px 5px; color: #999; margin-right: 3px; text-decoration: none;cursor:pointer;}
.pager a:hover { border:#c1d1d7 1px solid; background-color:#eaeff2; color: #23527c;}
.pager a:active { border:#c1d1d7 1px solid; background-color:#eaeff2; color: #23527c; }
.pager span.current { border: #6faed9 1px solid; padding: 2px 5px; background-color: #6faed9; color: red; font-weight: bold; margin-right: 3px;}
.pager span.disabled { padding: 2px 5px; margin-right: 3px; color: #777777; cursor: not-allowed;}
</style>
<c:if test="${null != pageInfo}">
	<div class="pager" >
    	<span>第<font name="pageNum" style="color:#333;">${pageInfo.pageNum }</font>/<font name="pages" style="color:#333;">${pageInfo.pages}</font>页</span>
        <span>共<font style="color:#333;">${pageInfo.total}</font>条记录</span>
        <!-- <span>记录总数<font style="color:Red;"></font></span> -->
        <c:if test="${pageInfo.isFirstPage || pageInfo.total==0}">
        	<span class="disabled" >首页</span>
        	<span class="disabled" >上一页</span>
        </c:if>
        <c:if test="${!pageInfo.isFirstPage && pageInfo.total!=0}">
	        <a class="disabled" onclick="goHeadPage(this);">首页</a>
	        <a onclick="goPervPage(this);">上一页</a>
        </c:if>
        
        <c:if test="${pageInfo.isLastPage }">
	        <span class="disabled" >下一页</span>
	        <span class="disabled" >末页</span>
        </c:if>
        <c:if test="${!pageInfo.isLastPage }">
        	<a onclick="goNextPage(this);" >下一页</a>
	        <a onclick="goLastPage(this);" >末页</a>
        </c:if>
        
        <span>转到第<input class="cssTxt" name="Txt_GO" type="text" size="1" onblur="jumpPage(this);" 
        	onkeyup='this.value=this.value.replace(/\D/gi,"")'/>页 </span>
        <span>每页 <select name="pageSize" onchange="changePage(this);">
        	<option <c:if test="${pageInfo.pageSize==10 }">selected</c:if>>10</ption>
        	<option <c:if test="${pageInfo.pageSize==30 }">selected</c:if>>30</option><option <c:if test="${pageInfo.pageSize==50 }">selected</c:if>>50</option>
        	</select>条</span>
    </div>
</c:if> 
<script type="text/javascript">
var pageNum = '${pageInfo.pageNum}';
</script>    
